﻿
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Borðspil.is - @ViewBag.Title</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        <script src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"></script>
        @RenderSection("JavaScript", required: false)
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("Borðspil.is", "Index", "Home")</p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            @{
                                if (Roles.IsUserInRole(WebSecurity.CurrentUserName, "Admin"))
                                {
                                    <li>@Html.ActionLink("Home", "Index", "Admin")</li>
                                }
                                else 
                                {
                                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                                }
                            }
                            <li>@Html.ActionLink("Games", "Index", "Games")</li>
                            <li>@Html.ActionLink("Game lobby", "Lobby", "Games", new { id = "" }, null)</li>
                            <li>@Html.ActionLink("About", "About", "Home")</li>
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="content">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                <div id="lists">
                @Html.Action("_PlayerList", "Home")
                @Html.Action("_Leaderboard", "Home")
                @RenderBody()
                </div>
            </section>
        </div>
        <footer id="pos">
           
            <div>
                <ul class="footerList">
                <li>
                    <p>Contact us: <a href="mailto:funkydude15@gmail.com.is">Admin@Bordspil.is</a></p>                      
                </li>
                <li>
                    @Html.ActionLink("About", "About", "Home") 
                </li>
                  <li>
                    @Html.ActionLink("FAQ", "About", "Home") 
                </li>
                  <li>
                    @Html.ActionLink("Rules", "About", "Home") 
                </li>
                </ul>
            </div>
        </footer>

        @RenderSection("scripts", required: false)
    </body>
</html>